package com.liang.study.design.model.vo;

import lombok.Data;

/**
 * @author lsm
 * @ClassName EngineResult.java
 * @Description TODO
 * @createTime 2023年12月21日 10:32:00
 */
@Data
public class EngineResult {

    private boolean isSuccess; //执行结果
    private String userId;   //用户ID
    private Long treeId;     //规则树ID
    private Long nodeId;   //果实节点ID
    private String nodeValue;//果实节点值

    public EngineResult(String userId, Long treeId, Long nodeId, String nodeValue) {
        this.isSuccess = true;
        this.userId = userId;
        this.treeId = treeId;
        this.nodeId = nodeId;
        this.nodeValue = nodeValue;
    }
}
